@{block content}

<h1>{$title}</h1>

<p>
    <a href="{plink Management:add}" class="button ui-state-default ui-corner-all" title="{!_'Add application'}">{!_"Add application"}</a>
</p>


{control paginator}

<table>
    <tr><th>{!_"Name"}</th><th>{!_"Url"}</th><th>{!_"Description"}</th><th>{!_"Publisher"}</th><th>{!_"Version"}</th>
        <th>{!_"Added"}</th><th>{!_"System"}</th><th>{!_"Auto"}</th><th>{!_"Edit"}</th><th>{!_"Delete"}</th></tr>
{foreach $apps as $app}
    <tr>
        <td>{$app['name']}</td>
        <td>{$app['url']}</td>
        <td>{$app['altText']}</td>
        <td>{$app['publisher']}</td>
        <td>{$app['version']}</td>
        <td>{$app['created']->format("j.n.Y G:i:s")}</td>
        <td>{$app['system']}</td>
        <td>{$app['autoinstall']}</td>
        <td><a href="{plink Management:edit, $app['name']}" class="button ui-state-default ui-corner-all" title="{!_'Edit resource'}"><span class="ui-icon ui-icon-wrench">{!_"edit"}</span></a></td>
        <td><a href="{plink Management:delete, $app['name']}" class="button ui-state-default ui-corner-all" title="{!_'Delete resource'}"><span class="ui-icon ui-icon-trash">{!_"delete"}</span></a></td>
    </tr>

{/foreach}
</table>